
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>1.7 分布式链路追踪 · Ebook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="zq_sdk@163.com">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-disqus/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-tree/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-local-video/video-js.min.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-ace/ace.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-katex/katex.min.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="swagger.html" />
    
    
    <link rel="prev" href="spring-config.html" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"repo":"TIME-GATE/","types":["star","watch"],"size":"large"};
    </script>

    
    <link rel="stylesheet" href="../../gitbook/gitbook-plugin-chart/c3/c3.min.css">
    <script src="../../gitbook/gitbook-plugin-chart/c3/d3.min.js"></script>
    <script src="../../gitbook/gitbook-plugin-chart/c3/c3.min.js"></script>
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    简介
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../../about_me.html">
            
                <a href="../../about_me.html">
            
                    
                    关于
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="../../gitbook_install.html">
            
                <a href="../../gitbook_install.html">
            
                    
                    附:Gitbook安装
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../">
            
                <a href="../../">
            
                    
                    一 基础理论
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../../data_structure/">
            
                <a href="../../data_structure/">
            
                    
                    1 数据结构
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.1" data-path="../../data_structure/11_linear_structure.html">
            
                <a href="../../data_structure/11_linear_structure.html">
            
                    
                    1.1 数组、链表、跳表及字典
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.1.1" data-path="../../data_structure/111_array.html">
            
                <a href="../../data_structure/111_array.html">
            
                    
                    1.1.1 数组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.1.2" data-path="../../data_structure/112_link_list.html">
            
                <a href="../../data_structure/112_link_list.html">
            
                    
                    1.1.2 链表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.1.3" data-path="../../data_structure/113_skip_list.html">
            
                <a href="../../data_structure/113_skip_list.html">
            
                    
                    1.1.3 跳表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.1.4" data-path="../../data_structure/114_dictionary.html">
            
                <a href="../../data_structure/114_dictionary.html">
            
                    
                    1.1.4 字典
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.1.2" data-path="../../data_structure/12_stack_and_queue.html">
            
                <a href="../../data_structure/12_stack_and_queue.html">
            
                    
                    1.2 栈、队列、散列及集合
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.2.1" data-path="../../data_structure/121_stack.html">
            
                <a href="../../data_structure/121_stack.html">
            
                    
                    1.2.1 栈
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.2.2" data-path="../../data_structure/122_queue.html">
            
                <a href="../../data_structure/122_queue.html">
            
                    
                    1.2.2 队列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.2.3" data-path="../../data_structure/123_hash.html">
            
                <a href="../../data_structure/123_hash.html">
            
                    
                    1.2.3 散列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.2.4" data-path="../../data_structure/124_set.html">
            
                <a href="../../data_structure/124_set.html">
            
                    
                    1.2.4 集合
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.1.3" data-path="../../data_structure/13_tree_and_forest.html">
            
                <a href="../../data_structure/13_tree_and_forest.html">
            
                    
                    1.3 树与森林
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.3.1" data-path="../../data_structure/131.html">
            
                <a href="../../data_structure/131.html">
            
                    
                    1.3.1 二叉搜索树
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.3.2" data-path="../../data_structure/132.html">
            
                <a href="../../data_structure/132.html">
            
                    
                    1.3.2 红黑树
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.1.4" data-path="../../data_structure/14_map.html">
            
                <a href="../../data_structure/14_map.html">
            
                    
                    1.4 图结构
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.4.1" data-path="../../data_structure/141_minimal_tree.html">
            
                <a href="../../data_structure/141_minimal_tree.html">
            
                    
                    1.4.1 最小生成树
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.4.2" data-path="../../data_structure/142_single_source_shortest_path.html">
            
                <a href="../../data_structure/142_single_source_shortest_path.html">
            
                    
                    1.4.2 单源最短路径
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.4.3" data-path="../../data_structure/143_all_source_shortest_path.html">
            
                <a href="../../data_structure/143_all_source_shortest_path.html">
            
                    
                    1.4.3 多源最短路径
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.4.4" data-path="../../data_structure/144_max_stream.html">
            
                <a href="../../data_structure/144_max_stream.html">
            
                    
                    1.4.4 最大流
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../../">
            
                <a href="../../">
            
                    
                    2 基础算法
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.2.1" data-path="../../algorithm/21.html">
            
                <a href="../../algorithm/21.html">
            
                    
                    2.1 排序查找
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.2" data-path="../../algorithm/22.html">
            
                <a href="../../algorithm/22.html">
            
                    
                    2.2 动态规划
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../../algorithm/distributed_algorithm.html">
            
                <a href="../../algorithm/distributed_algorithm.html">
            
                    
                    3 分布式算法
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.3.1" data-path="../../engineering/ci_deplopment/cs/theory.html">
            
                <a href="../../engineering/ci_deplopment/cs/theory.html">
            
                    
                    3.1 一致性模式与理论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.2" data-path="../../algorithm/raft.html">
            
                <a href="../../algorithm/raft.html">
            
                    
                    3.2 Raft协议
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.3" data-path="../../algorithm/paxos.html">
            
                <a href="../../algorithm/paxos.html">
            
                    
                    3.3 Paxos协议
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.4" data-path="../../algorithm/gossip.html">
            
                <a href="../../algorithm/gossip.html">
            
                    
                    3.4 Gossip协议
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.5" data-path="../../engineering/ci_deplopment/cs/plan.html">
            
                <a href="../../engineering/ci_deplopment/cs/plan.html">
            
                    
                    3.5 几种一致性方案
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../../optimization_se/">
            
                <a href="../../optimization_se/">
            
                    
                    4 运筹及系统工程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.4.1" data-path="../../optimization_se/linear_programming.html">
            
                <a href="../../optimization_se/linear_programming.html">
            
                    
                    4.1 线性规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.2" data-path="../../optimization_se/integer_programming.html">
            
                <a href="../../optimization_se/integer_programming.html">
            
                    
                    4.2 整数规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.3" data-path="../../optimization_se/目标规划.html">
            
                <a href="../../optimization_se/目标规划.html">
            
                    
                    4.3 目标规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.4" data-path="../../optimization_se/非线性规划.html">
            
                <a href="../../optimization_se/非线性规划.html">
            
                    
                    4.4 非线性规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.5" data-path="../../optimization_se/动态规划.html">
            
                <a href="../../optimization_se/动态规划.html">
            
                    
                    4.5 动态规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.6" data-path="../../optimization_se/排队论.html">
            
                <a href="../../optimization_se/排队论.html">
            
                    
                    4.6 排队论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.7" data-path="../../optimization_se/博弈论.html">
            
                <a href="../../optimization_se/博弈论.html">
            
                    
                    4.7 博弈论
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    二 工程应用
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../../engineering/design_pattern/">
            
                <a href="../../engineering/design_pattern/">
            
                    
                    1 设计模式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" data-path="../../engineering/design_pattern/strategy.html">
            
                <a href="../../engineering/design_pattern/strategy.html">
            
                    
                    1.1 策略模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.2" data-path="../../engineering/design_pattern/prototype.html">
            
                <a href="../../engineering/design_pattern/prototype.html">
            
                    
                    1.2 原型模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.3" data-path="../../engineering/design_pattern/singleton.html">
            
                <a href="../../engineering/design_pattern/singleton.html">
            
                    
                    1.3 单例模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.4" data-path="../../engineering/design_pattern/factory.html">
            
                <a href="../../engineering/design_pattern/factory.html">
            
                    
                    1.4 工厂模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.5" data-path="../../engineering/design_pattern/bridge.html">
            
                <a href="../../engineering/design_pattern/bridge.html">
            
                    
                    1.5 桥接模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.6" data-path="../../engineering/design_pattern/composite.html">
            
                <a href="../../engineering/design_pattern/composite.html">
            
                    
                    1.6 组合模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.7" data-path="../../engineering/design_pattern/facade.html">
            
                <a href="../../engineering/design_pattern/facade.html">
            
                    
                    1.7 门面模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.8" data-path="../../engineering/design_pattern/adapter.html">
            
                <a href="../../engineering/design_pattern/adapter.html">
            
                    
                    1.8 适配器模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.9" data-path="../../engineering/design_pattern/decorator.html">
            
                <a href="../../engineering/design_pattern/decorator.html">
            
                    
                    1.9 装饰者模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.10" data-path="../../engineering/design_pattern/flyweight.html">
            
                <a href="../../engineering/design_pattern/flyweight.html">
            
                    
                    1.10 享元模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.11" data-path="../../engineering/design_pattern/proxy.html">
            
                <a href="../../engineering/design_pattern/proxy.html">
            
                    
                    1.11 代理模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.12" data-path="../../engineering/design_pattern/middleware.html">
            
                <a href="../../engineering/design_pattern/middleware.html">
            
                    
                    1.12 中间件模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../../engineering/network_prag/">
            
                <a href="../../engineering/network_prag/">
            
                    
                    2 网络编程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.2.1" data-path="../../engineering/network_prag/socket.html">
            
                <a href="../../engineering/network_prag/socket.html">
            
                    
                    2.1 长连接
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.2" data-path="../../engineering/network_prag/mq.html">
            
                <a href="../../engineering/network_prag/mq.html">
            
                    
                    2.2 MQ
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../">
            
                <a href="../">
            
                    
                    3 语言应用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.1" data-path="../nodejs/node.html">
            
                <a href="../nodejs/node.html">
            
                    
                    3.1 Node.js
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.1.1" data-path="../nodejs/core.html">
            
                <a href="../nodejs/core.html">
            
                    
                    3.1.1 原理及构成
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.1.2" data-path="../nodejs/async.html">
            
                <a href="../nodejs/async.html">
            
                    
                    3.1.2 异步机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.1.3" data-path="../nodejs/important.html">
            
                <a href="../nodejs/important.html">
            
                    
                    3.1.3 一些核心概念
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.1.4" data-path="../nodejs/koa_web.html">
            
                <a href="../nodejs/koa_web.html">
            
                    
                    3.1.4 web应用: koa框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.1.5" data-path="../nodejs/koa.html">
            
                <a href="../nodejs/koa.html">
            
                    
                    3.1.5 koa源码分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.1.6" data-path="../nodejs/libuv.html">
            
                <a href="../nodejs/libuv.html">
            
                    
                    3.1.6 libuv网络库应用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.1.7" data-path="../nodejs/apm.html">
            
                <a href="../nodejs/apm.html">
            
                    
                    3.1.7 性能调优
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.1.8" data-path="../nodejs/node_spider.html">
            
                <a href="../nodejs/node_spider.html">
            
                    
                    3.1.8 其他: Node爬虫
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.1.9" data-path="../nodejs/node_map_reduce.html">
            
                <a href="../nodejs/node_map_reduce.html">
            
                    
                    3.1.9 其他: Node编写Mapreduce
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.3.2" data-path="../c/c_and_plus.html">
            
                <a href="../c/c_and_plus.html">
            
                    
                    3.2 C/C++
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.2.1" data-path="../c/oop.html">
            
                <a href="../c/oop.html">
            
                    
                    3.2.1 面向对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2.2" data-path="../c/ipcs.html">
            
                <a href="../c/ipcs.html">
            
                    
                    3.2.2 进程通信
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2.3" data-path="../c/thread.html">
            
                <a href="../c/thread.html">
            
                    
                    3.2.3 线程管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2.4" data-path="../c/memory.html">
            
                <a href="../c/memory.html">
            
                    
                    3.2.4 内存管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2.5" data-path="../c/network.html">
            
                <a href="../c/network.html">
            
                    
                    3.2.5 网络编程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2.6" data-path="../c/build_tool.html">
            
                <a href="../c/build_tool.html">
            
                    
                    3.2.6 构建工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2.7" data-path="../c/thread_pool.html">
            
                <a href="../c/thread_pool.html">
            
                    
                    3.2.7 其他: 线程池
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../engineering/ci_deplopment/">
            
                <a href="../../engineering/ci_deplopment/">
            
                    
                    三 搭建部署
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../engineering/ci_deplopment/test.html">
            
                <a href="../../engineering/ci_deplopment/test.html">
            
                    
                    3.1 测试
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1.1" data-path="../../engineering/ci_deplopment/test/unit_testing.html">
            
                <a href="../../engineering/ci_deplopment/test/unit_testing.html">
            
                    
                    3.1.1 单元测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.2" data-path="../../engineering/ci_deplopment/test/stress_testing.html">
            
                <a href="../../engineering/ci_deplopment/test/stress_testing.html">
            
                    
                    3.1.2 压力测试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../engineering/ci_deplopment/ci_readme.html">
            
                <a href="../../engineering/ci_deplopment/ci_readme.html">
            
                    
                    3.2 集成
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.2.1" data-path="../../engineering/ci_deplopment/ci/gitlab_ci.html">
            
                <a href="../../engineering/ci_deplopment/ci/gitlab_ci.html">
            
                    
                    3.2.1 GitLab CI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2.2" data-path="../../engineering/ci_deplopment/ci/spinnaker.html">
            
                <a href="../../engineering/ci_deplopment/ci/spinnaker.html">
            
                    
                    3.2.2 Spinnaker
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../../engineering/ci_deplopment/build.html">
            
                <a href="../../engineering/ci_deplopment/build.html">
            
                    
                    3.3 部署
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.3.1" data-path="../../engineering/ci_deplopment/k8s/k8s.html">
            
                <a href="../../engineering/ci_deplopment/k8s/k8s.html">
            
                    
                    3.3.1 k8s
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.2" data-path="../../engineering/ci_deplopment/rancher/rancher.html">
            
                <a href="../../engineering/ci_deplopment/rancher/rancher.html">
            
                    
                    3.3.2 rancher
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.3" data-path="../../engineering/ci_deplopment/swarm/swarm.html">
            
                <a href="../../engineering/ci_deplopment/swarm/swarm.html">
            
                    
                    3.3.3 swarm
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../../engineering/ci_deplopment/maintenance.html">
            
                <a href="../../engineering/ci_deplopment/maintenance.html">
            
                    
                    3.4 监控
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.4.1" data-path="../../engineering/ci_deplopment/monitor.html">
            
                <a href="../../engineering/ci_deplopment/monitor.html">
            
                    
                    3.4.1 容器监控
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.2" data-path="../../engineering/ci_deplopment/trace.html">
            
                <a href="../../engineering/ci_deplopment/trace.html">
            
                    
                    3.4.2 系统监控
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4.3" data-path="../../engineering/ci_deplopment/app1.md">
            
                <span>
            
                    
                    3.4.2 应用监控
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../../engineering/ha/ha.html">
            
                <a href="../../engineering/ha/ha.html">
            
                    
                    3.5 高可用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.5.1" data-path="../../engineering/ha/client.html">
            
                <a href="../../engineering/ha/client.html">
            
                    
                    3.5.1 接入层高可用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.2" data-path="../../engineering/ha/service.html">
            
                <a href="../../engineering/ha/service.html">
            
                    
                    3.5.2 服务层高可用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5.3" data-path="../../engineering/ha/share.html">
            
                <a href="../../engineering/ha/share.html">
            
                    
                    3.5.3 存储层高可用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../../engineering/ci_deplopment/hc/hc.html">
            
                <a href="../../engineering/ci_deplopment/hc/hc.html">
            
                    
                    3.6 高并发
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.6.1" data-path="../../engineering/ci_deplopment/hc/dns.html">
            
                <a href="../../engineering/ci_deplopment/hc/dns.html">
            
                    
                    3.6.1 基于DNS的负载均衡
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6.2" data-path="../../engineering/ci_deplopment/hc/lvs.html">
            
                <a href="../../engineering/ci_deplopment/hc/lvs.html">
            
                    
                    3.6.2 基于Lvs的负载均衡
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6.3" data-path="../../engineering/ci_deplopment/hc/haproxy.html">
            
                <a href="../../engineering/ci_deplopment/hc/haproxy.html">
            
                    
                    3.6.3 基于haproxy的负载均衡
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    四 架构模式
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" >
            
                <span>
            
                    
                    1 微服务架构设计与实践
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1.1" data-path="spring-cloud.html">
            
                <a href="spring-cloud.html">
            
                    
                    1.1 微服务概况
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.2" data-path="spring-eureka.html">
            
                <a href="spring-eureka.html">
            
                    
                    1.2 服务注册及发现
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.3" data-path="spring-feign.html">
            
                <a href="spring-feign.html">
            
                    
                    1.3 服务调用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.4" data-path="spring-zuul.html">
            
                <a href="spring-zuul.html">
            
                    
                    1.4 网关及负载均衡
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.5" data-path="spring-hystrix.html">
            
                <a href="spring-hystrix.html">
            
                    
                    1.5 熔断、限流、扩缩容
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.6" data-path="spring-config.html">
            
                <a href="spring-config.html">
            
                    
                    1.6 云配置中心
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5.1.7" data-path="zipkin-tracing.html">
            
                <a href="zipkin-tracing.html">
            
                    
                    1.7 分布式链路追踪
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.8" data-path="swagger.html">
            
                <a href="swagger.html">
            
                    
                    1.8 接口文档管理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../../domain/">
            
                <a href="../../domain/">
            
                    
                    2 领域驱动模型
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.2.1" data-path="../../domain/domain.html">
            
                <a href="../../domain/domain.html">
            
                    
                    2.1 领域--Domain
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.2" data-path="../../domain/entity.md">
            
                <span>
            
                    
                    2.2 领域实体--Entity
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.3" data-path="../../domain/object.html">
            
                <a href="../../domain/object.html">
            
                    
                    2.3 值对象--Value Object
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.4" data-path="../../domain/aggregate.html">
            
                <a href="../../domain/aggregate.html">
            
                    
                    2.4 聚合--Aggregate
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.5" data-path="../../domain/service.html">
            
                <a href="../../domain/service.html">
            
                    
                    2.5 服务--Services
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.6" data-path="../../domain/event.html">
            
                <a href="../../domain/event.html">
            
                    
                    2.6 领域事件--Event
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.7" data-path="../../domain/framework.html">
            
                <a href="../../domain/framework.html">
            
                    
                    2.7 几种常见的DDD架构
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.3" >
            
                <span>
            
                    
                    3 架构技术的演化与趋势
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.3.1" >
            
                <span>
            
                    
                    3.1 架构技术的发展历史及现状
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3.2" >
            
                <span>
            
                    
                    3.2 Serverless无服务架构概念
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3.3" >
            
                <span>
            
                    
                    3.3 ServerMesh网格服务概念
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    五 其他
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../story/talk.html">
            
                <a href="../../story/talk.html">
            
                    
                    5.1 小伙子,放松!
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >1.7 分布式链路追踪</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="&#x4E00;&#x3001;&#x7B80;&#x4ECB;">&#x4E00;&#x3001;&#x7B80;&#x4ECB;</h3>
<p>&#xA0;&#xA0;&#xA0;&#xA0;&#x5728;opentracing&#x89C4;&#x8303;&#x4F53;&#x7CFB;&#x4E0B;&#xFF0C;&#x6709;&#x591A;&#x79CD;&#x5206;&#x5E03;&#x5F0F;&#x94FE;&#x8DEF;&#x8FFD;&#x8E2A;&#x6846;&#x67B6;&#xFF0C;&#x5982;zipkin&#x548C;skywalking&#xFF0C;&#x5728;&#x672C;&#x7AE0;&#x8282;&#x4E2D;&#x5219;&#x4E3B;&#x8981;&#x5206;&#x4EAB;zipkin&#x7684;&#x5B9E;&#x73B0;&#x3002;</p>
<p>&#xA0;&#xA0;&#xA0;&#xA0;Zipkin&#x662F;&#x4E00;&#x4E2A;&#x5206;&#x5E03;&#x5F0F;&#x8FFD;&#x8E2A;&#x7CFB;&#x7EDF;&#x3002;&#x5B83;&#x6709;&#x52A9;&#x4E8E;&#x6536;&#x96C6;&#x89E3;&#x51B3;&#x5FAE;&#x670D;&#x52A1;&#x67B6;&#x6784;&#x4E2D;&#x5EF6;&#x8FDF;&#x95EE;&#x9898;&#x6240;&#x9700;&#x7684;&#x65F6;&#x5E8F;&#x6570;&#x636E;&#x3002;&#x5B83;&#x7BA1;&#x7406;&#x8FD9;&#x4E9B;&#x6570;&#x636E;&#x7684;&#x6536;&#x96C6;&#x548C;&#x67E5;&#x627E;&#x3002;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x7528;&#x4E8E;&#x5411;Zipkin&#x62A5;&#x544A;&#x65F6;&#x95F4;&#x6570;&#x636E;&#x3002;Zipkin UI&#x8FD8;&#x63D0;&#x4F9B;&#x4E86;&#x4E00;&#x4E2A;&#x4F9D;&#x8D56;&#x5173;&#x7CFB;&#x56FE;&#xFF0C;&#x663E;&#x793A;&#x6BCF;&#x4E2A;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x6709;&#x591A;&#x5C11;&#x8DDF;&#x8E2A;&#x8BF7;&#x6C42;&#x3002;&#x5982;&#x679C;&#x4F60;&#x6B63;&#x5728;&#x89E3;&#x51B3;&#x5EF6;&#x8FDF;&#x95EE;&#x9898;&#x6216;&#x9519;&#x8BEF;&#x95EE;&#x9898;&#xFF0C;&#x5219;&#x53EF;&#x4EE5;&#x6839;&#x636E;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#xFF0C;&#x8DDF;&#x8E2A;&#x957F;&#x5EA6;&#xFF0C;&#x6CE8;&#x91CA;&#x6216;&#x65F6;&#x95F4;&#x6233;&#x8FC7;&#x6EE4;&#x6216;&#x6392;&#x5E8F;&#x6240;&#x6709;&#x8DDF;&#x8E2A;&#x3002;&#x4E00;&#x65E6;&#x9009;&#x62E9;&#x4E86;&#x4E00;&#x4E2A;&#x8DDF;&#x8E2A;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x6BCF;&#x4E2A;&#x8DE8;&#x5EA6;&#x6240;&#x82B1;&#x8D39;&#x7684;&#x603B;&#x8DDF;&#x8E2A;&#x65F6;&#x95F4;&#x7684;&#x767E;&#x5206;&#x6BD4;&#xFF0C;&#x4ECE;&#x800C;&#x53EF;&#x4EE5;&#x786E;&#x5B9A;&#x95EE;&#x9898;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#xFF0C;Zipkin&#x7684;Span&#x6A21;&#x578B;&#x51E0;&#x4E4E;&#x5B8C;&#x5168;&#x4EFF;&#x9020;&#x4E86;Dapper&#x4E2D;Span&#x6A21;&#x578B;&#x7684;&#x8BBE;&#x8BA1;</p>
<pre><code>&#x250C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2510; &#x250C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2510;  &#x250C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2510;  &#x250C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2510;
&#x2502; User Code   &#x2502; &#x2502; Trace Instrumentation &#x2502;  &#x2502; Http Client &#x2502;  &#x2502; Zipkin Collector &#x2502;
&#x2514;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2518; &#x2514;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2518;  &#x2514;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2518;  &#x2514;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2518;
       &#x2502;                 &#x2502;                         &#x2502;                 &#x2502;
           &#x250C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2510;
       &#x2502; &#x2500;&#x2500;&#x2524;GET /foo &#x251C;&#x2500;&#x25B6; &#x2502; &#x2500;&#x2500;&#x2500;&#x2500;&#x2510;                   &#x2502;                 &#x2502;
           &#x2514;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2518;         &#x2502; record tags
       &#x2502;                 &#x2502; &#x25C0;&#x2500;&#x2500;&#x2500;&#x2518;                   &#x2502;                 &#x2502;
                           &#x2500;&#x2500;&#x2500;&#x2500;&#x2510;
       &#x2502;                 &#x2502;     &#x2502; add trace headers &#x2502;                 &#x2502;
                           &#x25C0;&#x2500;&#x2500;&#x2500;&#x2518;
       &#x2502;                 &#x2502; &#x2500;&#x2500;&#x2500;&#x2500;&#x2510;                   &#x2502;                 &#x2502;
                               &#x2502; record timestamp
       &#x2502;                 &#x2502; &#x25C0;&#x2500;&#x2500;&#x2500;&#x2518;                   &#x2502;                 &#x2502;
                             &#x250C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2510;
       &#x2502;                 &#x2502; &#x2500;&#x2500;&#x2524;GET /foo         &#x251C;&#x2500;&#x25B6; &#x2502;                 &#x2502;
                             &#x2502;X-B3-TraceId: aa &#x2502;     &#x2500;&#x2500;&#x2500;&#x2500;&#x2510;
       &#x2502;                 &#x2502;   &#x2502;X-B3-SpanId: 6b  &#x2502;   &#x2502;     &#x2502;           &#x2502;
                             &#x2514;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2518;         &#x2502; invoke
       &#x2502;                 &#x2502;                         &#x2502;     &#x2502; request   &#x2502;
                                                         &#x2502;
       &#x2502;                 &#x2502;                         &#x2502;     &#x2502;           &#x2502;
                                 &#x250C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2510;          &#x25C0;&#x2500;&#x2500;&#x2500;&#x2518;
       &#x2502;                 &#x2502; &#x25C0;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2524;200 OK  &#x251C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500; &#x2502;                 &#x2502;
                           &#x2500;&#x2500;&#x2500;&#x2500;&#x2510; &#x2514;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2518;
       &#x2502;                 &#x2502;     &#x2502; record duration   &#x2502;                 &#x2502;
            &#x250C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2510;     &#x25C0;&#x2500;&#x2500;&#x2500;&#x2518;
       &#x2502; &#x25C0;&#x2500;&#x2500;&#x2524;200 OK  &#x251C;&#x2500;&#x2500; &#x2502;                         &#x2502;                 &#x2502;
            &#x2514;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2518;       &#x250C;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2510;
       &#x2502;                 &#x2502; &#x2500;&#x2500;&#x2524; asynchronously report span     &#x251C;&#x2500;&#x2500;&#x2500;&#x2500;&#x25B6; &#x2502;
                             &#x2502;                                &#x2502;
                             &#x2502;{                               &#x2502;
                             &#x2502;  &quot;traceId&quot;: &quot;aa&quot;,              &#x2502;
                             &#x2502;  &quot;id&quot;: &quot;6b&quot;,                   &#x2502;
                             &#x2502;  &quot;name&quot;: &quot;get&quot;,                &#x2502;
                             &#x2502;  &quot;timestamp&quot;: 1483945573944000,&#x2502;
                             &#x2502;  &quot;duration&quot;: 386000,           &#x2502;
                             &#x2502;  &quot;annotations&quot;: [              &#x2502;
                             &#x2502;--snip--                        &#x2502;
                             &#x2514;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2518;
</code></pre><ul>
<li>1.1 &#x672F;&#x8BED;&#x4ECB;&#x7ECD;</li>
</ul>
<pre><code>&#xFF08;Span&#xFF09;&#xFF1A;
  &#x57FA;&#x672C;&#x7684;&#x5DE5;&#x4F5C;&#x5355;&#x4F4D;&#x3002;&#x4F8B;&#x5982;&#xFF0C;&#x53D1;&#x9001;&#x4E00;&#x4E2A;RPC&#x662F;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x8DE8;&#x5EA6;&#xFF0C;&#x5C31;&#x50CF;&#x5411;RPC&#x53D1;&#x9001;&#x54CD;&#x5E94;&#x4E00;&#x6837;&#x3002;&#x8DE8;&#x5EA6;&#x7531;&#x8DE8;&#x5EA6;&#x7684;&#x552F;&#x4E00;64&#x4F4D;ID&#x548C;&#x8DE8;&#x5EA6;
&#x6240;&#x5305;&#x542B;&#x7684;&#x53E6;&#x4E00;&#x4E2A; 64&#x4F4D;ID&#x6807;&#x8BC6;&#x3002;Spans&#x8FD8;&#x5177;&#x6709;&#x5176;&#x4ED6;&#x6570;&#x636E;&#xFF0C;&#x4F8B;&#x5982;&#x63CF;&#x8FF0;&#xFF0C;&#x65F6;&#x95F4;&#x6233;&#x4E8B;&#x4EF6;&#xFF0C;&#x952E;&#x503C;&#x6CE8;&#x91CA;&#xFF08;&#x6807;&#x8BB0;&#xFF09;&#xFF0C;&#x5BFC;&#x81F4;&#x5B83;&#x4EEC;&#x7684;&#x8DE8;&#x5EA6;&#x7684;ID&#x4EE5;&#x53CA;&#x8FDB;&#x7A0B;ID&#xFF08;&#x901A;&#x5E38;&#x4E3A;IP&#x5730;&#x5740;&#xFF09;

&#x75D5;&#x8FF9;&#xFF08;Trace&#xFF09;&#xFF1A;
  &#x4E00;&#x7EC4;&#x5F62;&#x6210;&#x6811;&#x72B6;&#x7ED3;&#x6784;&#x7684;&#x8DE8;&#x5EA6;&#x3002;&#x4F8B;&#x5982;&#xFF0C;&#x5982;&#x679C;&#x60A8;&#x6B63;&#x5728;&#x8FD0;&#x884C;&#x5206;&#x5E03;&#x5F0F;&#x5927;&#x6570;&#x636E;&#x5B58;&#x50A8;&#xFF0C;&#x5219;&#x8DDF;&#x8E2A;&#x53EF;&#x80FD;&#x7531;&#x653E;&#x5165;&#x8BF7;&#x6C42;&#x7EC4;&#x6210;&#x3002;

&#x6807;&#x6CE8;&#xFF08;Annotation&#xFF09;&#xFF1A;
  &#x7528;&#x4E8E;&#x53CA;&#x65F6;&#x8BB0;&#x5F55;&#x4E8B;&#x4EF6;&#x7684;&#x5B58;&#x5728;&#x3002;&#x7528;&#x4E8E;&#x5B9A;&#x4E49;&#x8BF7;&#x6C42;&#x5F00;&#x59CB;&#x548C;&#x7ED3;&#x675F;&#x7684;&#x4E00;&#x4E9B;&#x6838;&#x5FC3;&#x6CE8;&#x91CA;&#x662F;

cs(&#x5BA2;&#x6237;&#x7AEF;&#x53D1;&#x9001;)
  &#x5BA2;&#x6237;&#x7AEF;&#x53D1;&#x51FA;&#x8BF7;&#x6C42;&#x3002;&#x8FD9;&#x4E2A;&#x6CE8;&#x91CA;&#x63CF;&#x8FF0;&#x4E86;&#x8DE8;&#x5EA6;&#x7684;&#x5F00;&#x59CB;&#x3002;

sr(&#x670D;&#x52A1;&#x5668;&#x6536;&#x5230;)
  &#x670D;&#x52A1;&#x5668;&#x7AEF;&#x6536;&#x5230;&#x8BF7;&#x6C42;&#x5E76;&#x5F00;&#x59CB;&#x5904;&#x7406;&#x3002;&#x5982;&#x679C;&#x4ECE;&#x8FD9;&#x4E2A;&#x65F6;&#x95F4;&#x6233;&#x4E2D;&#x51CF;&#x53BB;cs&#x65F6;&#x95F4;&#x6233;&#xFF0C;&#x5C06;&#x4F1A;&#x6536;&#x5230;&#x7F51;&#x7EDC;&#x5EF6;&#x8FDF;&#x3002;

ss(&#x670D;&#x52A1;&#x5668;&#x53D1;&#x9001;)
  &#x5728;&#x8BF7;&#x6C42;&#x5904;&#x7406;&#x5B8C;&#x6210;&#x65F6;&#xFF08;&#x5F53;&#x54CD;&#x5E94;&#x88AB;&#x53D1;&#x9001;&#x56DE;&#x5BA2;&#x6237;&#x7AEF;&#x65F6;&#xFF09;&#x6CE8;&#x91CA;&#x3002;&#x5982;&#x679C;&#x4ECE;&#x8FD9;&#x4E2A;&#x65F6;&#x95F4;&#x6233;&#x4E2D;&#x51CF;&#x53BB;sr&#x65F6;&#x95F4;&#x6233;&#xFF0C;&#x5C06;&#x4F1A;&#x6536;&#x5230;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5904;&#x7406;&#x8BF7;
&#x6C42;&#x6240;&#x9700;&#x7684;&#x65F6;&#x95F4;&#x3002;

cr(&#x5BA2;&#x6237;&#x7AEF;&#x6536;&#x5230;)
  &#x8868;&#x793A;&#x8DE8;&#x5EA6;&#x7ED3;&#x675F;&#x3002;&#x5BA2;&#x6237;&#x7AEF;&#x5DF2;&#x7ECF;&#x6210;&#x529F;&#x63A5;&#x6536;&#x5230;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x7684;&#x54CD;&#x5E94;&#x3002;&#x5982;&#x679C;&#x4ECE;&#x8FD9;&#x4E2A;&#x65F6;&#x95F4;&#x6233;&#x4E2D;&#x51CF;&#x53BB;cs&#x65F6;&#x95F4;&#x6233;&#xFF0C;&#x90A3;&#x4E48;&#x5C06;&#x4F1A;&#x6536;&#x5230;&#x5BA2;&#x6237;&#x7AEF;&#x63A5;
&#x6536;&#x670D;&#x52A1;&#x5668;&#x54CD;&#x5E94;&#x6240;&#x9700;&#x7684;&#x5168;&#x90E8;&#x65F6;&#x95F4;
</code></pre><h3 id="&#x4E8C;&#x3001;&#x5B9E;&#x73B0;">&#x4E8C;&#x3001;&#x5B9E;&#x73B0;</h3>
<ul>
<li>2.1 &#x642D;&#x5EFA;zipkin server&#x7AEF;</li>
</ul>
<p>zipkin&#x53EF;&#x4EE5;&#x91C7;&#x7528;&#x57FA;&#x4E8E;&#x5185;&#x5B58;&#x548C;<code>es + kafka</code>&#x7684;&#x591A;&#x79CD;&#x65B9;&#x5F0F;&#x5B58;&#x50A8;&#x6570;&#x636E;&#xFF0C;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x4E00;&#x822C;&#x91C7;&#x7528;&#x7B2C;&#x4E8C;&#x79CD;&#x65B9;&#x5F0F;:</p>
<pre><code class="lang-bash">docker-compose <span class="hljs-_">-f</span> docker-zipkin-compose.yml up
</code></pre>
<p>docker-zipkin-compose.yml&#x914D;&#x7F6E;&#x5982;&#x4E0B;</p>
<pre><code class="lang-yaml"><span class="hljs-attr">version:</span> <span class="hljs-string">&apos;2&apos;</span>
<span class="hljs-attr">services:</span>
<span class="hljs-attr">  zk:</span>
<span class="hljs-attr">    image:</span> docker.io/zookeeper:<span class="hljs-number">3.4</span><span class="hljs-number">.9</span>
<span class="hljs-attr">    hostname:</span> spero-zk-server
<span class="hljs-attr">    ports:</span>
<span class="hljs-bullet">      -</span> <span class="hljs-string">&quot;2181:2181&quot;</span>
<span class="hljs-attr">    environment:</span>
<span class="hljs-attr">        ZOO_MY_ID:</span> <span class="hljs-number">1</span>
<span class="hljs-attr">        ZOO_PORT:</span> <span class="hljs-number">2181</span>
<span class="hljs-attr">        ZOO_SERVERS:</span> server<span class="hljs-number">.1</span>=spero-zk-server:<span class="hljs-number">2888</span>:<span class="hljs-number">3888</span>
<span class="hljs-attr">    volumes:</span>
<span class="hljs-bullet">      -</span> ./zk-kafka-share/zk/data:/data
<span class="hljs-bullet">      -</span> ./zk-kafka-share/zk/datalog:/datalog
<span class="hljs-attr">  kafka1:</span>
<span class="hljs-attr">    image:</span> wurstmeister/kafka 
<span class="hljs-attr">    hostname:</span> kafka1
<span class="hljs-attr">    ports:</span>
<span class="hljs-bullet">      -</span> <span class="hljs-string">&quot;9092:9092&quot;</span>
<span class="hljs-bullet">      -</span> <span class="hljs-string">&quot;9999:9999&quot;</span>
<span class="hljs-attr">    environment:</span>
<span class="hljs-attr">      KAFKA_ADVERTISED_LISTENERS:</span> <span class="hljs-string">&quot;PLAINTEXT://spero-kafka-server:9092&quot;</span>
<span class="hljs-attr">      KAFKA_LISTENERS:</span> <span class="hljs-string">&quot;PLAINTEXT://:9092&quot;</span>
<span class="hljs-attr">      KAFKA_ZOOKEEPER_CONNECT:</span> <span class="hljs-string">&quot;spero-zk-server:2181&quot;</span>
<span class="hljs-attr">      KAFKA_BROKER_ID:</span> <span class="hljs-number">1</span>
<span class="hljs-attr">      KAFKA_LOG4J_LOGGERS:</span> <span class="hljs-string">&quot;kafka.controller=INFO,kafka.producer.async.DefaultEventHandler=INFO,state.change.logger=INFO&quot;</span>
<span class="hljs-attr">      KAFKA_HEAP_OPTS:</span> <span class="hljs-string">&quot;-Xmx1G -Xms1G&quot;</span>
<span class="hljs-attr">      EXTRA_ARGS:</span> <span class="hljs-string">&quot;-name kafkaServer -loggc&quot;</span>
<span class="hljs-attr">      JMX_PORT:</span> <span class="hljs-number">9999</span>
<span class="hljs-attr">      KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR:</span> <span class="hljs-number">1</span>
<span class="hljs-attr">    volumes:</span>
<span class="hljs-bullet">      -</span> ./zk-kafka-share/kafka1/data:/var/lib/kafka/data
<span class="hljs-attr">    depends_on:</span>
<span class="hljs-bullet">      -</span> zk
<span class="hljs-attr">  zoonavigator-api:</span>
<span class="hljs-attr">    image:</span> docker.io/elkozmon/zoonavigator-api:<span class="hljs-number">0.2</span><span class="hljs-number">.3</span>
<span class="hljs-attr">    environment:</span>
<span class="hljs-attr">      SERVER_HTTP_PORT:</span> <span class="hljs-number">9005</span>
<span class="hljs-attr">    restart:</span> unless-stopped
<span class="hljs-attr">    depends_on:</span>
<span class="hljs-bullet">      -</span> zk
<span class="hljs-attr">  zoonavigator-web:</span>
<span class="hljs-attr">    image:</span> docker.io/elkozmon/zoonavigator-web:<span class="hljs-number">0.2</span><span class="hljs-number">.3</span>
<span class="hljs-attr">    ports:</span>
<span class="hljs-bullet">     -</span> <span class="hljs-string">&quot;8004:8000&quot;</span>
<span class="hljs-attr">    environment:</span>
<span class="hljs-attr">      API_HOST:</span> <span class="hljs-string">&quot;zoonavigator-api&quot;</span>
<span class="hljs-attr">      API_PORT:</span> <span class="hljs-number">9005</span>
<span class="hljs-attr">    links:</span>
<span class="hljs-bullet">     -</span> zoonavigator-api
<span class="hljs-attr">    depends_on:</span>
<span class="hljs-bullet">     -</span> zoonavigator-api
<span class="hljs-attr">    restart:</span> unless-stopped
<span class="hljs-attr">  zipkin:</span>
<span class="hljs-attr">    environment:</span>
<span class="hljs-bullet">      -</span> KAFKA_ZOOKEEPER=kafka1
<span class="hljs-attr">    depends_on:</span>
<span class="hljs-bullet">      -</span> kafka1
<span class="hljs-attr">  es:</span>
<span class="hljs-attr">    image:</span> elasticsearch:latest
<span class="hljs-attr">    container_name:</span> elasticsearch
<span class="hljs-attr">    ports:</span>
<span class="hljs-bullet">      -</span> <span class="hljs-number">9200</span>:<span class="hljs-number">9200</span>
<span class="hljs-attr">    environment:</span>
<span class="hljs-bullet">      -</span> http.host=<span class="hljs-number">0.0</span><span class="hljs-number">.0</span><span class="hljs-number">.0</span>
<span class="hljs-bullet">      -</span> transport.host=<span class="hljs-number">127.0</span><span class="hljs-number">.0</span><span class="hljs-number">.1</span>
<span class="hljs-bullet">      -</span> http.cors.enabled=<span class="hljs-literal">true</span>
<span class="hljs-bullet">      -</span> http.cors.allow-origin=*
<span class="hljs-bullet">      -</span> xpack.security.enabled=<span class="hljs-literal">false</span>
<span class="hljs-bullet">      -</span> ES_JAVA_OPTS=-Xms256m -Xmx256m
<span class="hljs-attr">  zipkin:</span>
<span class="hljs-attr">    image:</span> openzipkin/zipkin:<span class="hljs-number">2.6</span><span class="hljs-number">.1</span>
<span class="hljs-attr">    container_name:</span> zipkin
<span class="hljs-attr">    environment:</span>
<span class="hljs-bullet">      -</span> STORAGE_TYPE=elasticsearch
<span class="hljs-bullet">      -</span> ES_HOSTS=spero-zipkin-server
<span class="hljs-bullet">      -</span> JAVA_OPTS=-Dlogging.level.zipkin=DEBUG -Dlogging.level.zipkin2=DEBUG
<span class="hljs-attr">    ports:</span>
<span class="hljs-bullet">      -</span> <span class="hljs-number">9411</span>:<span class="hljs-number">9411</span>
<span class="hljs-attr">    depends_on:</span>
<span class="hljs-bullet">      -</span> es
<span class="hljs-bullet">      -</span> kafka1
<span class="hljs-attr">  dependencies:</span>
<span class="hljs-attr">    image:</span> openzipkin/zipkin-dependencies:<span class="hljs-number">1.11</span><span class="hljs-number">.3</span>
<span class="hljs-attr">    container_name:</span> dependencies
<span class="hljs-attr">    entrypoint:</span> crond -f
<span class="hljs-attr">    environment:</span>
<span class="hljs-bullet">      -</span> STORAGE_TYPE=elasticsearch
<span class="hljs-bullet">      -</span> ES_HOSTS=spero-zipkin-server
<span class="hljs-bullet">      -</span> ZIPKIN_LOG_LEVEL=DEBUG
<span class="hljs-bullet">      -</span> JAVA_OPTS=-verbose:gc -Xms1G -Xmx1G
<span class="hljs-attr">    depends_on:</span>
<span class="hljs-bullet">      -</span> es
</code></pre>
<ul>
<li><img src="http://cdn.find-world.top/zipkin_1.png" alt="zipkin"></li>
</ul>
<p>&#x5176;&#x4E2D;:</p>
<pre><code>- zipkin&#xFF1A;&#x5206;&#x5E03;&#x5F0F;&#x94FE;&#x8DEF;&#x8FFD;&#x8E2A;s
- elasticsearch&#xFF1A;&#x6570;&#x636E;&#x5B58;&#x50A8;
- kafka&#xFF1A;&#x65E5;&#x5FD7;&#x7B49;&#x6570;&#x636E;&#x7F13;&#x5B58;&#x4E2D;&#x95F4;&#x4EF6;
- zookeeper&#xFF1A;&#x4FDD;&#x8BC1;kafka&#x9AD8;&#x53EF;&#x7528;
</code></pre><ul>
<li>2&#x3001;1 &#x4EE5;zuul&#x7F51;&#x5173;&#x4E3A;&#x4F8B;, &#x670D;&#x52A1;&#x6D88;&#x8D39;&#x8005;http client&#x6DFB;&#x52A0;zipkin&#x4F9D;&#x8D56;&#x5E76;&#x914D;&#x7F6E;&#xFF0C;</li>
</ul>
<p>&#xA0;&#xA0;&#xA0;&#xA0;&#x6B64;&#x5904;zipkin client&#x8D1F;&#x8D23;&#x6536;&#x96C6;&#x6574;&#x4E2A;&#x94FE;&#x8DEF;&#x7684;span&#x7B49;&#x4FE1;&#x606F;&#xFF0C;&#x901A;&#x8FC7;<code>Spring Cloud Feign</code> &#x3001;<code>Spring Cloud Sleuth</code>&#x7B49;&#x63D2;&#x4EF6;&#x5C06;&#x6570;&#x636E;&#x5BFC;&#x5165;&#x5230;server&#x7AEF;&#x3002;Spring Cloud Sleuth&#x662F;Spring Cloud&#x4E3A;&#x5206;&#x5E03;&#x5F0F;&#x670D;&#x52A1;&#x8DDF;&#x8E2A;&#x63D0;&#x4F9B;&#x7684;&#x89E3;&#x51B3;&#x65B9;&#x6848;,&#x5176;&#x529F;&#x80FD;&#x5982;&#x4E0B;:</p>
<pre><code>- &#x63D0;&#x4F9B;&#x94FE;&#x8DEF;&#x8FFD;&#x8E2A;&#xFF0C;&#x6545;&#x969C;&#x5FEB;&#x901F;&#x5B9A;&#x4F4D;&#xFF1A;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x8C03;&#x7528;&#x94FE;&#x7ED3;&#x5408;&#x4E1A;&#x52A1;&#x65E5;&#x5FD7;&#x5FEB;&#x901F;&#x5B9A;&#x4F4D;&#x9519;&#x8BEF;&#x4FE1;&#x606F;&#x3002;
- &#x53EF;&#x89C6;&#x5316;&#x5404;&#x4E2A;&#x9636;&#x6BB5;&#x8017;&#x65F6;&#xFF0C;&#x8FDB;&#x884C;&#x6027;&#x80FD;&#x5206;&#x6790;
- &#x5404;&#x4E2A;&#x8C03;&#x7528;&#x73AF;&#x8282;&#x7684;&#x53EF;&#x7528;&#x6027;&#x3001;&#x68B3;&#x7406;&#x670D;&#x52A1;&#x4F9D;&#x8D56;&#x5173;&#x7CFB;&#x4EE5;&#x53CA;&#x4F18;&#x5316;
- &#x6570;&#x636E;&#x5206;&#x6790;&#xFF0C;&#x4F18;&#x5316;&#x94FE;&#x8DEF;&#xFF1A;&#x53EF;&#x4EE5;&#x5F97;&#x5230;&#x7528;&#x6237;&#x7684;&#x884C;&#x4E3A;&#x8DEF;&#x5F84;&#xFF0C;&#x6C47;&#x603B;&#x5206;&#x6790;&#x5E94;&#x7528;&#x5728;&#x5F88;&#x591A;&#x4E1A;&#x52A1;&#x573A;&#x666F;&#x3002;
</code></pre><pre><code class="lang-java">dependencies {
    compile(<span class="hljs-string">&quot;org.springframework.cloud:spring-cloud-starter-config&quot;</span>)
    compile(<span class="hljs-string">&apos;org.springframework.cloud:spring-cloud-starter-zuul&apos;</span>)
    compile(<span class="hljs-string">&apos;org.springframework.cloud:spring-cloud-starter-eureka&apos;</span>)
    compile(<span class="hljs-string">&apos;org.springframework.cloud:spring-cloud-sleuth-zipkin&apos;</span>)
    compile(<span class="hljs-string">&apos;org.springframework.cloud:spring-cloud-starter-feign&apos;</span>)
    compile(group: <span class="hljs-string">&apos;io.github.openfeign&apos;</span>, name: <span class="hljs-string">&apos;feign-httpclient&apos;</span>, version: <span class="hljs-string">&apos;9.5.0&apos;</span>)
    testCompile(<span class="hljs-string">&quot;org.springframework.boot:spring-boot-starter-test&quot;</span>)
}
</code></pre>
<ul>
<li>2.2 &#x5728;config server &#x4E2D;&#x914D;&#x7F6E;zuul</li>
</ul>
<pre><code class="lang-yaml">spring.zipkin.baseUrl: http://spero-zipkin-server:<span class="hljs-number">9411</span>
spring.zipkin.enabled: <span class="hljs-literal">true</span>
spring.zipkin.sender.type: web
spring.zipkin.sleuth.sampler.percentage: <span class="hljs-number">1.0</span>
</code></pre>
<ul>
<li>&#x524D;&#x7AEF;&#x53D1;&#x9001;&#x8BF7;&#x6C42;</li>
</ul>
<p><img src="http://cdn.find-world.top/zipkin_2.png" alt="zipkin"></p>
<ul>
<li>&#x67E5;&#x770B;&#x5DF2;&#x6CE8;&#x518C;&#x5FAE;&#x670D;&#x52A1;</li>
</ul>
<p><img src="http://cdn.find-world.top/zipkin-4.png" alt="zipkin"></p>
<ul>
<li>&#x67E5;&#x770B;&#x8C03;&#x7528;&#x94FE;&#x53CA;&#x8017;&#x65F6;&#x7B49;</li>
</ul>
<p><img src="http://cdn.find-world.top/zipkin-5.png" alt="zipkin"></p>
<ul>
<li>&#x67E5;&#x770B;&#x670D;&#x52A1;&#x4F9D;&#x8D56;&#x53CA;&#x8C03;&#x7528;&#x5173;&#x7CFB;</li>
</ul>
<p><img src="http://cdn.find-world.top/zipkin-6.png" alt="zipkin"></p>
<p>&#xA0;&#xA0;&#xA0;&#xA0;zipkin&#x5BA2;&#x6237;&#x7AEF;&#x901A;&#x5E38;&#x4EE5;&#x4E2D;&#x95F4;&#x4EF6;&#x7684;&#x5F62;&#x5F0F;&#x4FB5;&#x5165;&#x5728;&#x5404;&#x5FAE;&#x670D;&#x52A1;&#x4E2D;&#xFF0C;&#x5F53;&#x53D1;&#x751F;&#x670D;&#x52A1;&#x8C03;&#x7528;&#x65F6;&#xFF0C;&#x4F1A;&#x5728;http&#x7684;header&#x6DFB;&#x52A0;span&#x7B49;&#x4FE1;&#x606F;&#x6765;&#x8FFD;&#x8E2A;&#x8C03;&#x7528;&#x4FE1;&#x606F;&#xFF0C;&#x6B64;&#x5904;&#x6211;&#x4EEC;&#x7701;&#x7565;&#x670D;&#x52A1;&#x6D88;&#x8D39;&#x65B9;&#x7684;zipkin&#x4E2D;&#x95F4;&#x4EF6;&#x5B9E;&#x73B0;&#xFF0C;&#x4EC5;&#x4F5C;&#x7ED3;&#x679C;&#x6F14;&#x793A;&#xFF0C;&#x5728;&#x94FE;&#x8DEF;&#x8FFD;&#x8E2A;&#x4E2D;&#xFF0C;&#x670D;&#x52A1;&#x8C03;&#x7528;&#x7684;&#x901A;&#x4FE1;&#x534F;&#x8BAE;&#x591A;&#x6837;&#xFF0C;&#x5982;HTTP&#x3001;Thrift&#x3001;gRpc&#x3001;&#x6D88;&#x606F;&#x961F;&#x5217;&#xFF0C;&#x65E0;&#x8BBA;&#x57FA;&#x4E8E;&#x4F55;&#x79CD;&#x65B9;&#x5F0F;&#xFF0C;&#x6A21;&#x5F0F;&#x90FD;&#x4E00;&#x81F4;&#xFF0C;&#x5728;&#x5B9E;&#x73B0;&#x96BE;&#x5EA6;&#x4E0A;&#x4F1A;&#x53EF;&#x80FD;&#x4F1A;&#x9012;&#x589E;&#xFF0C;&#x5176;&#x4E2D;&#x57FA;&#x4E8E;&#x961F;&#x5217;&#x7684;&#x94FE;&#x8DEF;&#x8FFD;&#x8E2A;&#xFF0C;&#x53EF;&#x8BE6;&#x89C1;&#x672C;&#x4EBA;&#x5B9E;&#x73B0;&#x7684;Node&#x7248;&#x672C; ()[<a href="https://github.com/TIME-GATE/zipkin-transport-rabbitmq]&#x3002;" target="_blank">https://github.com/TIME-GATE/zipkin-transport-rabbitmq]&#x3002;</a></p>
<h3 id="&#x4E09;&#x3001;&#x53C2;&#x8003;">&#x4E09;&#x3001;&#x53C2;&#x8003;</h3>
<ul>
<li><a href="https://www.cnblogs.com/softidea/p/7612570.html" target="_blank">1&#x3001;Spring Sleuth &#x5B98;&#x7F51;</a></li>
<li><a href="https://www.cnblogs.com/softidea/p/7612570.html" target="_blank">2&#x3001;Spring Sleuth</a> </li>
</ul>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; &#x4E00;&#x84D1;&#x70DF;&#x96E8;&#x4EFB;&#x5E73;&#x751F; all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x4FEE;&#x6539;&#x65F6;&#x95F4;: 
2021-04-09 11:09:02
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="spring-config.html" class="navigation navigation-prev " aria-label="Previous page: 1.6 云配置中心">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="swagger.html" class="navigation navigation-next " aria-label="Next page: 1.8 接口文档管理">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"1.7 分布式链路追踪","level":"1.5.1.7","depth":3,"next":{"title":"1.8 接口文档管理","level":"1.5.1.8","depth":3,"path":"program/java/swagger.md","ref":"program/java/swagger.md","articles":[]},"previous":{"title":"1.6 云配置中心","level":"1.5.1.6","depth":3,"path":"program/java/spring-config.md","ref":"program/java/spring-config.md","articles":[]},"dir":"ltr"},"config":{"plugins":["disqus","tree","splitter","local-video","chart","github-buttons","tbfed-pagefooter","ace","katex"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy 一蓑烟雨任平生","modify_label":"修改时间: ","modify_format":"YYYY-MM-DD HH:mm:ss"},"disqus":{"useIdentifier":false,"shortName":"gitbookuse"},"ace":{},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"katex":{},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"github-buttons":{"repo":"TIME-GATE/","types":["star","watch"],"size":"large"},"local-video":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"tree":{},"chart":{"type":"c3"}},"theme":"default","author":"zq_sdk@163.com","name":"name","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Ebook","language":"zh-hans","gitbook":"*","description":"电子书"},"file":{"path":"program/java/zipkin-tracing.md","mtime":"2021-04-09T03:09:02.268Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-04-10T12:23:44.633Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="https://cdnjs.cloudflare.com/ajax/libs/URI.js/1.16.1/URI.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-disqus/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-tree/jquery.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-tree/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-local-video/video.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-ace/ace/ace.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-ace/ace.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

